package com.tdam2013.grupo07.data;

import android.content.Context;

public class DatabaseHelperSingleton 
{

	private static DatabaseHelper databaseHelper;
	private static DatabaseHelperSingleton databaseHelperSingleton;
	
	public static DatabaseHelperSingleton getInstance(Context context)
	{
		if(databaseHelperSingleton==null)
			databaseHelperSingleton=new DatabaseHelperSingleton(context);
		return databaseHelperSingleton;
	}
	
	private DatabaseHelperSingleton(Context context)
	{
		databaseHelper=new DatabaseHelper(context.getApplicationContext());
	}
	
	public DatabaseHelper getDatabaseHelper()
	{
		return databaseHelper;
	}
}
